
import request from "@/plugins/request";

var pre = "/inteCater/foodBeverages/canteenScore";

if (process.env.NODE_ENV !== "development") {
  pre = "/api/sa/smar-catering" + pre;
}

// 分页获取评价信息
export function getPage(data) {
    return request({
        url: `${pre}/getPage`,
        method: "post",
        data
    });
}

// 评价
export function editScore(data) {
    return request({
        url: `${pre}/editScore`,
        method: "post",
        data
    });
}